﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WxxMail.Domain;
using WxxMail.IBLL;
using WxxMail.BLL;

namespace WxxMail.Mvc.Controllers
{
    public class bma_usersController : Controller
    {
      
        //
        // GET: /bma_users/

        public ViewResult Index()
        {
            //return View(db.LoadEntites(u => true));
            return View();
        }

        ////
        //// GET: /bma_users/Details/5

        //public ViewResult Details(int id)
        //{

        //    bma_users userinfo = db.LoadEntites(u => u.uid == id).FirstOrDefault();
        //    return View(userinfo);
        //}

        ////
        //// GET: /bma_users/Create

        //public ActionResult Create()
        //{
        //    return View();
        //}

        ////
        //// POST: /bma_users/Create

        //[HttpPost]
        //public ActionResult Create(bma_users userinfo)
        //{
        //    if (ModelState.IsValid)
        //    {
        //        db.AddEntity(userinfo);
        //        return RedirectToAction("Index");
        //    }

        //    return View(userinfo);
        //}

        ////
        //// GET: /bma_users/Edit/5

        //public ActionResult Edit(int id)
        //{
        //    bma_users userinfo = db.LoadEntites(u => u.uid == id).FirstOrDefault();
        //    return View(userinfo);
        //}

        ////
        //// POST: /bma_users/Edit/5

        //[HttpPost]
        //public ActionResult Edit(bma_users userinfo)
        //{
        //    if (ModelState.IsValid)
        //    {
        //        db.UpdateEntity(userinfo);
        //        return RedirectToAction("Index");
        //    }
        //    return View(userinfo);
        //}

        ////
        //// GET: /bma_users/Delete/5

        //public ActionResult Delete(int id)
        //{
        //    bma_users userinfo = db.LoadEntites(u => u.uid == id).FirstOrDefault();
        //    return View(userinfo);
        //}

        ////
        //// POST: /bma_users/Delete/5

        //[HttpPost, ActionName("Delete")]
        //public ActionResult DeleteConfirmed(int id)
        //{

        //    var userInfo = db.LoadEntites(u => u.uid == id).FirstOrDefault();
        //    db.DelEntity(userInfo);
        //    return RedirectToAction("Index");
        //}
    }
}